<?php

namespace api\modules\goods\controllers;

use api\extensions\ApiBaseController;
use api\services\goods\GoodsBrandService;

class BrandController extends ApiBaseController
{
    /**
     * 列表
     * * */
    public function actionList()
    {
        $params = \Yii::$app->request->post();
        $rules = [
            [[], 'required', 'message' => '{attribute}属必填项'],
        ];
        $validate = $this->validateParams($params, $rules);
        if ($validate) {
            return $this->jsonError($validate);
        }
        return GoodsBrandService::getList($this->params);
    }

}